<?php 
	require_once("init.php"); 
	require_once("functions.php"); 
?>

<?php
  // New topics
	$qTopic = mysql_query("
    SELECT *
    FROM topics 
    WHERE topicId = ".$_GET["id"]."
  ");
	
  while ($row = mysql_fetch_array($qTopic)) {
?>
<ul id="reportedtopic-<?php print $row["topicId"]; ?>" title="Moderate">  
	<li class="heading">
		<?php print $row["question"]; ?><br />
    <small><?php print $row["answer1"]." or ".$row["answer2"]; ?>?</small>
  </li>
	<li><a class="answer" href="moderatetopic.php?id=<?php print $row["topicId"]; ?>&a=-1">Take it down!</a></li>
	<li><a class="answer" href="moderatetopic.php?id=<?php print $row["topicId"]; ?>&a=1">Leave it be</a></li>
</ul>
<?php
	}
?>

<?php 
	require_once("end.php"); 
?>